package com.sudo.dao.admin.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Table(name = "sys_my_sts_month")
public class SysMyStsMonth {
    @Id
    private Integer id;

    @Column(name = "username")
    private String username;

    // 哪一年
    @Column(name = "year")
    private Integer year;

    // 几月份
    @Column(name = "month")
    private Integer month;

    // 开始日期
    @Column(name = "start_date")
    private LocalDate startDate;

    // 结束日期
    @Column(name = "end_date")
    private LocalDate endDate;

    // 登录次数
    @Column(name = "login_not")
    private Integer loginNot = 0;

    // 创建时间
    @Column(name = "num_behavior")
    private Integer numBehavior = 0;

    //活跃度（即操作数）
    @Column(name = "create_time")
    private LocalDateTime createTime;

    public SysMyStsMonth() {
    }

    public SysMyStsMonth(int year, int month) {
        this.year = year;
        this.month = month;
    }
}
